package cn.zn.modules.expense.service.impl;

import cn.zn.modules.expense.dao.TpAttachmentDao;
import cn.zn.modules.expense.entity.TpAttachmentEntity;
import cn.zn.modules.expense.service.TpAttachmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("tpAttachmentService")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class TpAttachmentServiceImpl extends ServiceImpl<TpAttachmentDao, TpAttachmentEntity> implements TpAttachmentService {

    final TpAttachmentDao tpAttachmentDao;

    @Override
    public List<TpAttachmentEntity> findByAppontMainId(String mainId) {
        return tpAttachmentDao.findByAppontMainId(mainId);
    }
}